/*
 * @Author       : Thyssen Wen
 * @Date         : 2022-09-23 03:01:51
 * @LastEditors  : Thyssen Wen
 * @LastEditTime : 2022-09-23 03:30:49
 * @Description  : test
 * @FilePath     : /cdesign-pattern/Factory/test.cpp
 */
#include "Factory.h"
#include "Product.h"
#include "IDCardFactory.h"

using namespace framework;
using namespace idcard;

int main(int argc, char *argv[])
{
    framework::Factory * factory = new idcard::IDCardFactory();
    framework::Product * card1 = factory->create("Xiao ming");
    framework::Product * card2 = factory->create("Xiao hong");
    framework::Product * card3 = factory->create("Xiao gang");
    card1->use();
    card2->use();
    card3->use();
    return 0;
}